package org.redmagic.client;

import org.apache.log4j.BasicConfigurator;
import org.redmagic.client.test.TestClass;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Start {

	public static void main(String[] args) {

		BasicConfigurator.configure();
		ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext("test-config.xml");
		TestClass testClass = appCtx.getBean(TestClass.class);
		System.out.println("DatabaseUser: " + testClass.getProperty1());
		System.out.println("DatabaseHost: " + testClass.getProperty2());
		System.out.println("DatabasePassword: " + testClass.getProperty3());
	}

}
